<?php

namespace App\Modules\CodeDesigner\Strategy\Mode;

use App\Modules\CodeDesigner\Strategy\BaseStrategy;

class StrategyB extends BaseStrategy
{

    private $rebate;

    public function __construct(float $rebate)
    {
        $this->rebate = $rebate;
    }

    public function getResult(float $money): float
    {
        return $money * $this->rebate;
    }
}